Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


Getting Interface Descriptors

The USBGetInterfaceDescriptor function returns a pointer to the interface descriptor of supplied device reference.

OSStatus USBGetInterfaceDescriptor (
                     USBInterfaceRef *interfaceRef,
                     USBInterfaceDescriptor *InterfaceDescriptor,
                     UInt32 size);

--> interfaceRef
A pointer to the allocated interface reference for which you want the interface descriptor.
<-- interfaceDescriptor
A pointer to the device interface descriptor.
--> size
Size of the descriptor. If the descriptor that is returned is larger than the requested size, a kUSBOverRunErr is returned and only the first size bytes of the descriptor are filled in.

© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames